package com.android.tianyuanyouxuan.presenter;

import com.android.tianyuanyouxuan.App;
import com.android.tianyuanyouxuan.base.IPresenter;
import com.android.tianyuanyouxuan.bean.News;
import com.android.tianyuanyouxuan.gen.NewsDao;

import java.util.List;

public class XueTangPresenter implements IPresenter {

    public List<News> getNewsList() {
        return App.mApp.getDaoSession().getNewsDao().queryBuilder().orderDesc(NewsDao.Properties.Date).list();
    }
}
